package com.sts.transform.function;

import com.googlecode.aviator.runtime.function.AbstractFunction;
import com.googlecode.aviator.runtime.type.AviatorObject;
import com.googlecode.aviator.runtime.type.AviatorString;
import io.github.yindz.random.RandomSource;

import java.util.Map;

/**
 * @author lsl
 * @since 2025年07月09日 19:58
 */
public class RandCnPhoneFunction extends AbstractFunction {

    @Override
    public AviatorObject call(Map<String, Object> env) {
        return new AviatorString(RandomSource.personInfoSource().randomChineseMobile());
    }

    @Override
    public String getName() {
        return "randCnPhone";
    }
}